package com.gdut.simple.data.remote.http.service;

import com.gdut.simple.data.entity.News;
import com.gdut.simple.data.entity.Result;
import com.gdut.simple.data.remote.api.NewsApi;

import java.util.List;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

public interface IHotPickService {

    @GET("/wxnew/?key=" + NewsApi.TIAN_APIKEY)
    Observable<Result<List<News>>> getHotPicks(@Query("num") int num, @Query("page") int pages);

    @GET("/wxnew/?key=" + NewsApi.TIAN_APIKEY)
    Observable<Result<List<News>>> queryHotPicksFromSrc(@Query("src") String src, @Query("num") int num, @Query("page") int pages);

    @GET("/wxnew/?key=" + NewsApi.TIAN_APIKEY)
    Observable<Result<List<News>>> queryHotPicksByKey(@Query("word") String key, @Query("num") int num, @Query("page") int pages);

}
